﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMenu.master" AutoEventWireup="true"
    CodeBehind="CaseSearch.aspx.cs" Inherits="IRC.IRepairClouds.WebClient.Cases.CaseSearch" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="pageTitle">
        <h2>
            <asp:Label ID="Label24" runat="server" Text="Case search"></asp:Label></h2>
    </div>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <asp:Panel ID="Panel1" runat="server" DefaultButton="ButtonSearch">
        <telerik:RadTabStrip ID="RadTabStripSearchConditions" runat="server" MultiPageID="RadMultiPageSearchConditions">
            <Tabs>
                <telerik:RadTab Text="Search info" Selected="true" Value="SearchCases">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPageSearchConditions" runat="server" CssClass="transactionSearchPageView"
            BorderColor="#898C95" BorderWidth="1px">
            <telerik:RadPageView runat="server" ID="RadPageViewSearchConditionsCases" Selected="true">
                <table>
                    <tr>
                        <td valign="top">
                            <table cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:Label ID="Label26" runat="server" Text="Repair number:" AssociatedControlID="TextBoxCaseNumber"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxCaseNumber" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label27" runat="server" Text="Serial number" AssociatedControlID="TextBoxSerialNumber"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxSerialNumber" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label29" runat="server" Text="Model" AssociatedControlID="RadComboBoxModel"></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="RadComboBoxModel" runat="server" ExpandAnimation-Type="None"
                                            CollapseAnimation-Type="None" Width="250">
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label30" runat="server" Text="Customer" AssociatedControlID="RadComboBoxCustomer"></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="RadComboBoxCustomer" runat="server" ExpandAnimation-Type="None"
                                            CollapseAnimation-Type="None" Width="250">
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label4" runat="server" Text="Status" AssociatedControlID="RadComboBoxStatus"></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="RadComboBoxStatus" runat="server" ExpandAnimation-Type="None"
                                            CollapseAnimation-Type="None" Width="250">
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td valign="top">
                            <table cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:Label ID="Label45" runat="server" Text="BI From:" AssociatedControlID="RadDatePickerBIFromDate"></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadDatePicker ID="RadDatePickerBIFromDate" runat="server">
                                            <Calendar ID="Calendar1" runat="server">
                                                <SpecialDays>
                                                    <telerik:RadCalendarDay Repeatable="Today" Date="" ItemStyle-CssClass="rcToday" />
                                                </SpecialDays>
                                            </Calendar>
                                        </telerik:RadDatePicker>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label1" runat="server" Text="BI To:" AssociatedControlID="RadDatePickerBIToDate"></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadDatePicker ID="RadDatePickerBIToDate" runat="server">
                                            <Calendar ID="Calendar2" runat="server">
                                                <SpecialDays>
                                                    <telerik:RadCalendarDay Repeatable="Today" Date="" ItemStyle-CssClass="rcToday" />
                                                </SpecialDays>
                                            </Calendar>
                                        </telerik:RadDatePicker>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label2" runat="server" Text="BO From:" AssociatedControlID="RadDatePickerBOFromDate"></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadDatePicker ID="RadDatePickerBOFromDate" runat="server">
                                            <Calendar ID="Calendar3" runat="server">
                                                <SpecialDays>
                                                    <telerik:RadCalendarDay Repeatable="Today" Date="" ItemStyle-CssClass="rcToday" />
                                                </SpecialDays>
                                            </Calendar>
                                        </telerik:RadDatePicker>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label3" runat="server" Text="BO To:" AssociatedControlID="RadDatePickerBOToDate"></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadDatePicker ID="RadDatePickerBOToDate" runat="server">
                                            <Calendar ID="Calendar4" runat="server">
                                                <SpecialDays>
                                                    <telerik:RadCalendarDay Repeatable="Today" Date="" ItemStyle-CssClass="rcToday" />
                                                </SpecialDays>
                                            </Calendar>
                                        </telerik:RadDatePicker>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
        <asp:Button ID="ButtonSearch" runat="server" Text="Search" />
        <asp:Button ID="ButtonNewSearch" runat="server" Text="Clear filter" />
    </asp:Panel>
    <asp:Panel ID="PanelResult" runat="server" CssClass="searchResult">
        <asp:Label ID="Label22" runat="server" Text="Results"></asp:Label>
        <hr />
        <div>
            <telerik:RadGrid ID="RadGridSearchResults" runat="server" AutoGenerateColumns="False"
                AllowPaging="True" GridLines="None" AllowSorting="True" ShowStatusBar="true">
                <MasterTableView>
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridHyperLinkColumn Text="Edit" UniqueName="column" DataNavigateUrlFields="RowGuid" DataNavigateUrlFormatString="CaseDetail.aspx?caseId={0}">
                        </telerik:GridHyperLinkColumn>
                        <telerik:GridBoundColumn DataField="RepairOrderNumber" HeaderText="Repair number"
                            SortExpression="RepairOrderNumber" UniqueName="RepairOrderNumber">
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="CustomerName" HeaderText="Customer name" SortExpression="CustomerName"
                            UniqueName="CustomerName">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CustomerSurname" HeaderText="Customer surname"
                            SortExpression="CustomerSurname" UniqueName="CustomerSurname">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CustomerPhone" HeaderText="Customer phone" SortExpression="CustomerPhone"
                            UniqueName="CustomerPhone">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EstimatedPrice" HeaderText="Estimated price"
                            SortExpression="EstimatedPrice" UniqueName="EstimatedPrice">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EstimatedDateCompletion" HeaderText="Estimated date completion"
                            SortExpression="EstimatedDateCompletion" UniqueName="EstimatedDateCompletion">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ProblemDescription" HeaderText="Problem description"
                            SortExpression="ProblemDescription" UniqueName="ProblemDescription">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                <ClientSettings EnableRowHoverStyle="true">
                    <ClientEvents OnCommand="GreeNova.Utils.dummyFunc" />
                </ClientSettings>
            </telerik:RadGrid>
            <telerik:RadToolTipManager ID="RadToolTipManagerLog" runat="server" Sticky="true"
                RenderInPageRoot="true" Position="TopLeft" ManualClose="true" ShowEvent="FromCode">
            </telerik:RadToolTipManager>
        </div>
    </asp:Panel>
</asp:Content>
